package com.english_test_sys.mapper;

import com.english_test_sys.pojo.Question;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface QuestionMapper {
    List<Question> getQuestionsByCategoryAndType(@Param("category") String category, @Param("type") String type);
    List<Question> getQuestionsByDifficulty(@Param("difficulty") Integer difficulty);
    void importQuestion(Question question);
    Question selectById(Integer id);
    void updateQuestion(Question question);
    void deleteQuestion(Integer id);

}
